<div class="jumbotron">
    <h1>
        用户注册
    </h1>
</div>
<!--col-md-offset-4 col-lg-offset-4 col-xl-offset-4使注册界面居中这么多其实是各种屏幕大小下的自适应-->
<div class="row clearfix col-md-offset-4">
    <div class="col-md-12 column">
        <!--action="register"实际上是跳转到名为register的路由-->
        <form class="form-horizontal" role="form" action="register" method="post">
            <div class="form-group">
                <label for="inputUserName" class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="inputUserName" name="username"
                           value="{$oldUsername}"/>
                </div>
                {if session('registerErrors.username')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.username}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-2">
                    <input type="password" class="form-control" id="inputPassword" name="password"
                           value="{$oldPassword}"/>
                </div>
                {if session('registerErrors.password')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.password}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputRepassword" class="col-sm-2 control-label">重复密码</label>
                <div class="col-sm-2">
                    <input type="password" class="form-control" id="inputRepassword" name="repassword"
                           value="{$oldRepassword}"/>
                </div>
                {if session('registerErrors.repassword')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.repassword}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputPhone" class="col-sm-2 control-label">手机号</label>
                <div class="col-sm-2">
                    <input type="number" class="form-control" id="inputPhone" name="phone"
                           value="{$oldPhone}"/>
                </div>
                {if session('registerErrors.phone')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.phone}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputAddress" class="col-sm-2 control-label">收货地址</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="inputAddress" name="address"
                           value="{$oldAddress}"/>
                </div>
                {if session('registerErrors.address')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.address}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputBalance" class="col-sm-2 control-label">银行卡余额</label>
                <div class="col-sm-2">
                    <input type="number" class="form-control" id="inputBalance" name="balance"
                           value="{$oldBalance}"/>
                </div>
                {if session('registerErrors.balance')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.balance}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputPayPassword" class="col-sm-2 control-label">支付密码</label>
                <div class="col-sm-2">
                    <input type="password" class="form-control" id="inputPayPassword" name="pay_password"
                           value="{$oldPayPassword}"/>
                </div>
                {if session('registerErrors.pay_password')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.registerErrors.pay_password}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" class="btn btn-primary btn-block">确认注册</button>
                </div>
            </div>
        </form>
    </div>
</div>
